<!DOCTYPE html>
<html>
		<head>
		<meta charset="utf-8">
		<meta name="robots" content="noarchive">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>商家附加要求</title>
		<meta content="发布任务" name="keywords" />
		<meta content="发布任务" name="description" />
		<!--<link href="templates/400011/skins/default/member.css" rel="stylesheet" type="text/css" />-->
		<script src="js/jquery.min.js"></script>
		<script src="js/base.min.js" id="jsbase" source="ysr"></script>
		<link rel="stylesheet" href="css/layer.css" />
		<script src="js/layer.js"></script>		
		<link rel="stylesheet" type="text/css" href="css/bootstrap-datetimepicker.min.css" />
		<script type="text/javascript" src="js/bootstrap-datetimepicker.js"></script>
		<script type="text/javascript" src="js/bootstrap-datetimepicker.zh-CN.js"></script>
		<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" href="css/bootstrap-theme.min.css">
		<link rel="stylesheet" type="text/css" href="css/common.css">
		<link rel="stylesheet" type="text/css" href="css/module.css">
		<link rel="stylesheet" type="text/css" href="css/global2471.css">
		<script type="text/javascript" src="js/bootstrap.min.js"></script>
		<link rel="stylesheet" type="text/css" href="css/base.min.css" />
		<link rel="stylesheet" type="text/css" href="css/business.css" />
		<script type="text/javascript" src="js/global.min.js"></script>
		<link rel="stylesheet" type="text/css" href="css/releasetaskf700.css">
		<script type="text/javascript" src="js/image.min.js"></script>
		<script type="text/javascript" src="js/jquery.validate.min.js"></script>
	
		<link rel="stylesheet" href="css/nomal-bs.css" />
		<script>
			var thisPageId = 'home';
			var siteId = '1022';
			if(siteId == '1013') {
				var currSellerId = '133320';
				var yushu;
				if(currSellerId == '') {
					yushu = (new Date().getTime()) % 4;
				} else {
					yushu = parseInt(currSellerId) % 4;
				}
				$('#imgqrcode').attr('src', '/v1/site/' + siteId + '/wx' + yushu + '.png');
			}
		</script>
		<script type="text/javascript" src="js/main.min.js"></script>
		<style>.hidden{display: none;}</style>
	</head>
	<body>
			<div id="header" style="padding:0px;">
			<div class="top top-login">
				<div class="w-1k f-cb">
					<ul class="f-cb f-fr">
						<li class="f-fl  p-r">
							<div>
								<!--                         <a class="tp-nv">
                            <img src="images/level/seller_1.png" style="padding-left:13px;">
                        </a> -->
								<a class="tp-nv" style="padding-right:13px;" href="/member/shopaccount.php" id="div-uname">13592507037 </a>
							</div>
						</li>
						<li class="f-fl">
							<span class="tp-nv v-bar" style="padding-left:0px;">|</span>
						</li>
						<li class="f-fl">
							<a class="tp-nv" href="/pay/showpayment.php?tab=online" title="账户中心">本金：
								<span class="ye" id="div-seller-benjin">34.00</span>元</a>
							<a class="striking" title="账户充值" href="/pay/showpayment.php?tab=online"> 充值</a>&nbsp; &nbsp&nbsp&nbsp&nbsp佣金：
							<span class="ye" id="div-seller-benjin1">10.00</span>金
							<a class="striking" title="账户充值" href="/pay/pay.php"> 充值</a>
						</li>
						<li class="f-fl">
							<span class="tp-nv v-bar" style="padding-left:13px;padding-right:13px;">|</span>
						</li>
						<li class="f-fl">
							<a style="display:block;" href="/member/logout.php"><span>退出</span></a>
						</li>
						<li class="f-fl">
							<span class="tp-nv v-bar" style="padding-left:13px;padding-right:13px;">|</span>
						</li>
						<li class="f-fl">
							<a class="edit_pwd" data-toggle="modal" data-target=".change_pwd">修改密码</a>
						</li>
					</ul>
				</div>
			</div>
		</div>
		
		<div id="navgation" style="padding:0px 0px 15px 0px;">
			<div class="hd">
				<div class="w-1k f-cb p-r">
					<a href="/member/index.php"><img class="logo" src="images/logo4.png"></a>
					<ul class="f-cb f-fr f-fr-navtab">
						<!--<li class="f-fl "><a class="hd-nv a_mehome active" href="/member/index.php">商家中心</a></li>-->
					</ul>
				</div>
			</div>
		</div>

<div class="w-1k" style="margin-top: 10px;margin-bottom: 10px;text-align: center;" id="div-new-article"></div>

<div class="row w-1k ct-wrap f-cb">
		<div class="f-fl left-nav">
				<ul class="nav-group">
					<li class="nav-item p-r a_home ">
						<a class="click-wrap" href="/member/index.php">
							<span class="nav-btn nb0">商家公告</span>
						</a>
					</li>
					<li class="nav-item p-r a_message a_messae_view ">
						<a class="click-wrap" href="/member/email.php">
							<span class="nav-btn nb5">邮件</span>
							<div class="num-count email"></div>
						</a>
					</li>
					<li class="nav-item p-r a_task_step1 a_task_step2 a_task_step3 a_task_step4 a_task_price a_openvip active">
						<a class="click-wrap" href="/member/shopquest.php?act=add">
							<span class="nav-btn nb1">发布任务</span>
						</a>
					</li>
					<li class="nav-item p-r a_shop ">
						<a class="click-wrap" href="/member/shopaccount.php">
							<span class="nav-btn nb3">店铺管理</span>
						</a>
					</li>
					<li class="nav-item p-r a_task_list ">
						<a class="click-wrap" href="/member/shopquest.php">
							<span class="nav-btn nb2">任务管理</span>
							<div class="num-count task"></div>
						</a>
					</li>
					<li class="nav-item p-r a_task_list ">
						<a class="click-wrap" href="/member/cancel.php">
							<span class="nav-btn nb2">可撤销订单</span>
							<div class="num-count task"></div>
						</a>
					</li>
					<li class="nav-item p-r a_task_list ">
						<a class="click-wrap" href="/member/cancel_browse.php">
							<span class="nav-btn nb2">已撤销订单</span>
							<div class="num-count task"></div>
						</a>
					</li>
					<li class="nav-item p-r a_fund ">
						<a class="click-wrap" href="/pay/pay.php">
							<span class="nav-btn nb4">资金明细</span></a>
					</li>
					<li class="nav-item p-r a_recharge ">
						<a class="click-wrap" href="/pay/showpayment.php?tab=online">
							<span class="nav-btn nb3">充值提现</span>
						</a>
					</li>
					<li class="nav-item p-r a_shop ">
						<a class="click-wrap" href="/member/show_price.php">
							<span class="nav-btn nb3">价格明细</span>
						</a>
					</li>
					<li class="nav-item p-r a_appeal a_appeal_view ">
						<a class="click-wrap" href="/member/appeal.php">
							<span class="nav-btn nb5">申诉中心</span>
							<div class="num-count appeal"></div>
						</a>
					</li>
					<li class="nav-item p-r a_extension ">
						<a class="click-wrap" href="/member/extension.php">
							<span class="nav-btn nb6">邀请好友</span>
						</a>
					</li>
					<li class="nav-item p-r a_backlist ">
						<a class="click-wrap" href="/member/backlist.php">
							<span class="nav-btn nb7">黑名单</span>
						</a>
					</li>
					<li class="nav-item p-r a_feedback ">
						<a class="click-wrap" href="/member/feedback.php">
							<span class="nav-btn nb8">意见反馈</span>
						</a>
					</li>
				</ul>
			</div>
			
			<div class="f-fl main">
				<ul class="f-cb step-wrap">
							<li class="p-r f-fl r-step "><span>1.选择任务类型</span><img class="tri-tag" src="images/triangle_nor.png">
							</li>
							<li class="p-r f-fl r-step "><span>2.填写任务信息</span><img class="tri-tag" src="images/triangle_nor.png">
							</li>
							<li class="p-r f-fl r-step "><span>3.选择任务类型</span><img class="tri-tag" src="images/triangle_nor.png">
							</li>
							<li class="p-r f-fl r-step "><span>4.选择增值服务</span><img class="tri-tag" src="images/triangle_nor.png">
							</li>
							<li class="p-r f-fl r-step act"><span>5.商家附加要求</span><img class="tri-tag" src="images/triangle_act.png">
							</li>
							<li class="p-r f-fl r-step"><span>6.支付</span><img class="tri-tag" src="images/triangle_nor.png">
							</li>
							<li class="p-r f-fl r-step  r-step-4"><span>7.发布成功</span></li>
						</ul>
						<div class="step step-6" style="margin-top: 30px;">
						<h3>第五步：商家附加要求</h3>
						<div class="wrap-remark-img">
							<h2 class="tip">如有需要备注可添加图片，最多可添加3张，图片中不要显示店铺名或商品名，避免用户直接搜索！</h2>
							<div class="f-cb">
								<div class="wrap-add-img f-pr f-cb f-fl">
									<img id="preview_imgUrl1" src="images/upload_icon.png" width="144" height="144">
									<input type="hidden" name="imgUrl1" id="imgUrl1" value="">
									<div style="position: absolute;top: -4px;left: 135px;display: block;">
										<a href="javascript:void(0)" class="imgdelete" img="imgUrl1"><img src="images/error_tag.png"></a>
									</div>
									<p style="padding-top: 12px;margin-left: 50px;">第一张</p>
									<div class="btn-upfile" style="margin-top: 8px;margin-left: 30px;">
										<div class="new-contentarea">
											<a href="javascript:void(0)" class="upload-img upimg" id="upload_imgUrl1" imgid="imgUrl1" module="task"><label></label></a>
										</div>
									</div>
								</div>
								<div class="wrap-add-img f-pr f-cb f-fl">
									<img id="preview_imgUrl2" src="images/upload_icon.png" width="144" height="144">
									<input type="hidden" name="imgUrl2" id="imgUrl2" value="">
									<div style="position: absolute;top: -4px;left: 135px;display: block;">
										<a href="javascript:void(0)" class="imgdelete" img="imgUrl2"><img src="images/error_tag.png"></a>
									</div>
									<p style="padding-top: 12px;margin-left: 50px;">第二张</p>
									<div class="btn-upfile" style="margin-top: 8px;margin-left: 30px;">
										<div class="new-contentarea">
											<a href="javascript:void(0)" class="upload-img upimg" id="upload_imgUrl2" imgid="imgUrl2" module="task"><label></label></a>
										</div>
									</div>
								</div>
								<div class="wrap-add-img f-pr f-cb f-fl">
									<img id="preview_imgUrl3" src="images/upload_icon.png" width="144" height="144">
									<input type="hidden" name="imgUrl3" id="imgUrl3" value="">
									<div style="position: absolute;top: -4px;left: 135px;display: block;">
										<a href="javascript:void(0)" class="imgdelete" img="imgUrl3"><img src="images/error_tag.png"></a>
									</div>
									<p style="padding-top: 12px;margin-left: 50px;">第三张</p>
									<div class="btn-upfile" style="margin-top: 8px;margin-left: 30px;">
										<div class="new-contentarea">
											<a href="javascript:void(0)" class="upload-img upimg" id="upload_imgUrl3" imgid="imgUrl3" module="task"><label></label></a>
										</div>
									</div>
								</div>
							</div>
						</div>

						<div class="user-remark">
							<label style="color: #737270;font-weight: bold;position: relative;">商家备注内容</label>
							<div>
								<textarea class="remark" id="remark" name="remark" maxlength="350" placeholder="重要！如果对用户有特别的要求，请在备注里注明，用户在做任务时会看到，最多不能超过300字(任务备注只是商家要求，我们只能做到传达给用户但不会强制用户按要求执行)"></textarea>
								<p class="remark-over" style="color:red;margin-bottom:18px;visibility:hidden;">超过300个字</p>
							</div>
						</div>
					</div>
					
					<div class="user-opt f-cb">
						<input type="hidden" name="taskTypeItem" value="3">
						<input type="hidden" name="shopId" value="2248">
						<input type="hidden" name="act" value="add">
						<input type="hidden" name="dosubmit" value="1">
						<input type="hidden" id="taskType" name="taskType" value="1" />
						<input  onclick="prev1()" class="btn btn-prev f-fl" type="button">
						<input class="btn btn-next f-fl" type="submit" onclick="return checkTask();" value="">
					</div>
				
			</div>
</div>
	<div id="ft">
			<div class="w-1k pr">
				<p class="reginfo">CopyRight 2018-2022, XmTyq Inc. All Rights Reserved&nbsp; 闽ICP备1234567号 投诉QQ：xxxxxxxx</p>
			</div>
		</div>
		<script type="text/javascript" src="js/taskf700.js"></script>
		<script type="text/javascript" src="js/releasetask_new.js"></script>
		<script type="text/javascript" src="js/task2.js"></script>
	<!--	<script type="text/javascript" src="js/ysr/task2.js?v=10"></script>-->
	<script>
			$('.hbxj').on('click',function(){
				$(".hbxj_show").toggle();
			})
			
			var task_money = 3;
			var haoping1 = '1';
			var haoping2 = '0';
			var haoping3 = '0';
			var haoping4 = '4';
			var isTaoke = '';
			var isDefinedImg = '';

			if(isTaoke == '1') {
				$('#isTaoke1').attr('checked', true);
			}
			if(isDefinedImg == '1') {
				$('#isDefinedImg').attr('checked', true);
				$('#definedImg').show();
				var imgs = '';
				if(imgs != '') {
					var jimgs = $.parseJSON(imgs);
					for(var i in jimgs) {
						var img = jimgs[i];
						$('#' + img).attr('checked', true);
					}
				}
			}

		
			var publishDate = '0';
			if(publishDate == '1') {
				$("input[name=publishDate][value=1]").attr("checked", true);
			} else {
				$("input[name=publishDate][value=0]").attr("checked", true);
			}

			showTimer(publishDate);

			initItemList1(1, '', '', '', '');
			initItemList1(2, '', '', '', '');
			initItemList1(3, '', '', '', '');
			initItemList1(4, '', '', '', '');
			initItemList1(5, '', '', '', '');

			imageUpload.init('imageUrl2', '', 'task');
			imageUpload.init('imageUrl3', '', 'task');

			imageUpload.init('imgUrl1', '', 'task');

			imageUpload.init('imgUrl2', '', 'task');

			imageUpload.init('imgUrl3', '', 'task');
			var taskType = parseInt($('#taskType').val());
			var taskTypeItem = '104';
			var competeBuy, competeCollection, competeShopcart;
			if(taskTypeItem == '114') {
				imageUpload.init('competeImageUrl1', '', 'task');

				competeBuy = '';
				if(competeBuy == '1') {
					$("input[name=competeBuy1][value=1]").attr("checked", true);
				} else {
					$("input[name=competeBuy1][value=0]").attr("checked", true);
				}
				competeCollection = '';
				if(competeCollection == '0') {
					$("input[name=competeCollection1][value=0]").attr("checked", true);
				} else {
					$("input[name=competeCollection1][value=1]").attr("checked", true);
				}
				competeShopcart = '';
				if(competeShopcart == '0') {
					$("input[name=competeShopcart1][value=0]").attr("checked", true);
				} else {
					$("input[name=competeShopcart1][value=1]").attr("checked", true);
				}
				imageUpload.init('competeImageUrl2', '', 'task');

				competeBuy = '';
				if(competeBuy == '1') {
					$("input[name=competeBuy2][value=1]").attr("checked", true);
				} else {
					$("input[name=competeBuy2][value=0]").attr("checked", true);
				}
				competeCollection = '';
				if(competeCollection == '0') {
					$("input[name=competeCollection2][value=0]").attr("checked", true);
				} else {
					$("input[name=competeCollection2][value=1]").attr("checked", true);
				}
				competeShopcart = '';
				if(competeShopcart == '0') {
					$("input[name=competeShopcart2][value=0]").attr("checked", true);
				} else {
					$("input[name=competeShopcart2][value=1]").attr("checked", true);
				}
				imageUpload.init('competeImageUrl3', '', 'task');

				competeBuy = '';
				if(competeBuy == '1') {
					$("input[name=competeBuy3][value=1]").attr("checked", true);
				} else {
					$("input[name=competeBuy3][value=0]").attr("checked", true);
				}
				competeCollection = '';
				if(competeCollection == '0') {
					$("input[name=competeCollection3][value=0]").attr("checked", true);
				} else {
					$("input[name=competeCollection3][value=1]").attr("checked", true);
				}
				competeShopcart = '';
				if(competeShopcart == '0') {
					$("input[name=competeShopcart3][value=0]").attr("checked", true);
				} else {
					$("input[name=competeShopcart3][value=1]").attr("checked", true);
				}
			} else if(taskTypeItem == '121' || taskTypeItem == '122' || taskTypeItem == '123' || taskTypeItem == '124' || taskTypeItem == '125' || taskTypeItem == '126' || taskTypeItem == '129') {
				imageUpload.init('imgUrl4', '', 'task');
				imageUpload.init('imgUrl5', '', 'task');
				imageUpload.init('imgUrl6', '', 'task');
				imageUpload.init('imgUrl7', '', 'task');
				imageUpload.init('imgUrl8', '', 'task');
			}

			$("input[name=taskTypeItemRadio][value=" + taskTypeItem + "]").attr("checked", true);

			$('.wrap-all-limit').show();
			textTaskInit();
			imageTaskInit();
			videoTaskInit();

			var limitNewReg = '';
			var limitFirstOrder = '';
			var isAddCompare = '';
			if(taskTypeItem == '119') {
				if(limitNewReg == '1') {
					$('#limitNewReg').attr('checked', true);
				}
				if(limitFirstOrder == '1') {
					$('#limitFirstOrder').attr('checked', true);
				}
				if(isAddCompare == '1') {
					$('#isAddCompare').attr('checked', true);
				}
			}

			if(taskType == 1) {
				getExpress('');

				initItemList2(1, '', '', '', '');
				initItemList2(2, '', '', '', '');
				initItemList2(3, '', '', '', '');
				initItemList2(4, '', '', '', '');
				initItemList2(5, '', '', '', '');
				getComment('2');

				initItemList3(1, '', '', '', '');
				initItemList3(2, '', '', '', '');
				initItemList3(3, '', '', '', '');
				initItemList3(4, '', '', '', '');
				initItemList3(5, '', '', '', '');
				getComment('3');

				initItemList4(1, '', '', '', '');
				initItemList4(2, '', '', '', '');
				initItemList4(3, '', '', '', '');
				initItemList4(4, '', '', '', '');
				initItemList4(5, '', '', '', '');
				getComment('4');

				var freeShopping = '';
				if(freeShopping == '1') {
					$('#freeShopping1').attr('checked', true);
				} else if(freeShopping == '2') {
					$('#freeShopping2').attr('checked', true);
				}
			}

			function setTaskTypeItem(taskTypeItem) {
				$('#taskTypeItem').val(taskTypeItem);
			}

			var bTempClose = false;

			function doDaojishi() {
				layer.open({
					type: 1,
					title: false //不显示标题栏
						,
					closeBtn: false,
					area: '350px;',
					shade: 0.8,
					id: 'LAY_layuipro' //设定一个id，防止重复弹出
						,
					btn: ['关闭'],
					btnAlign: 'c',
					yes: function(index, layero) {
						//bTempClose && layer.close(index);
						layer.close(index);
					},
					moveType: 1 //拖拽模式，0或者1
						,
					content: '<div style="padding: 30px 20px;; line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;">任务期间请关闭淘宝客、村淘、分享有赏等淘客活动，若因淘客引起的佣金支出由商家自己承担！</div>'
				});			

				this.lefttime = 5;
				this.timeer = null;
				var e = this;
				this.countdown = function() {
					clearTimeout(e.timeer);
					$(".layui-layer-btn0").html(e.lefttime + "秒后关闭");
					e.lefttime--;
					if(e.lefttime > 0) {
						e.timeer = setTimeout(e.countdown, 1000);
					} else {
						e.lefttime = 60;
						$(".layui-layer-btn0").html("关闭");
						$('.layui-layer-btn0').attr('style', '');
						bTempClose = true;
					}
				};

			}

			

			var currVideoId = '';
			var fileInput = $('#upload_file_name').get(0);
			fileInput.addEventListener("change", function(e) {

				var file = document.getElementById('upload_file_name');
				var ext = file.value.substring(file.value.lastIndexOf(".") + 1)
					.toLowerCase();

				if(ext != 'mp4') {
					alert("视频的格式必须为mp4格式！");
					return;
				}

				$('#span_' + currVideoId).html('正在上传视频...');
				// document.FileUploadForm.submit();

				$.ajax({
					url: "http://www.zhuanzhuanduoweb.com:17008/api/upload",
					type: "POST",
					data: new FormData($('#FileUploadForm')[0]),
					contentType: false,
					processData: false,
					success: function(res) {

						$('#' + currVideoId).val(res.data);
						$('#span_' + currVideoId).html(res.data);

					},
					complete: function() {
						imageProcess = false;
					},
					error: function() {
						alert("上传失败！");
						$("#imgWait").hide();
					}
				});

			}, false);
			//
			// $('#video_target_iframe').on('load', function () {
			//     var responseText = $('iframe')[1].contentDocument.body.textContent;
			//     console.log(responseText)
			//     var d = $.parseJSON(responseText) || {};
			//     if (d.success == true) {
			//         imageCallback(d.data);
			//     } else {
			//         $('#span_' + currVideoId).html('');
			//         alert(d.msg);
			//     }
			// });

			$('.upvideo').on('click', function() {
				if(imageProcess) {
					$.prompt("视频上传中，请稍后...");
					return false;
				}
				var e = $(this);
				currVideoId = e.attr('imgid');
				imageCallback = function(data) {
					$('#' + currVideoId).val(data.url);
					$('#span_' + currVideoId).html(data.url);
				};
				$('#upload_file_name').click();
				$('#upload_file_name').val('');
			});

			//            var date = new Date();
			$('#publishDateStartTime').datetimepicker({
				language: 'zh-CN',
				format: 'hh:ii',
				autoclose: true,
				minView: 0,
				minuteStep: 1,
				todayHighlight: true,
				startDate: new Date(),
				startView: 1
			});
			$('#publishDateEndTime').datetimepicker({
				language: 'zh-CN',
				format: 'hh:ii',
				autoclose: true,
				minView: 0,
				minuteStep: 1,
				todayHighlight: true,
				startDate: new Date(),
				startView: 1
			});
			$('#publishDateDate').datetimepicker({
				language: 'zh-CN',
				format: 'yyyy-mm-dd',
				autoclose: true,
				pickDate: true,
				pickTime: false,
				startDate: new Date(),
			});

			function getNowFormatDate() {
				var date = new Date();
				var seperator1 = "-";
				var seperator2 = ":";
				var month = date.getMonth() + 1;
				var strDate = date.getDate();
				var strHours = date.getHours();
				var strMinutes = date.getMinutes();
				if(month >= 1 && month <= 9) {
					month = "0" + month;
				}
				if(strDate >= 0 && strDate <= 9) {
					strDate = "0" + strDate;
				}
				if(strHours >= 0 && strHours <= 9) {
					strHours = "0" + strHours;
				}
				if(strMinutes >= 0 && strMinutes <= 9) {
					strMinutes = "0" + strMinutes;
				}
				var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate +
					" " + strHours + seperator2 + strMinutes;
				return currentdate;
			}
		</script>
		<script>
			function clearNoNum(obj) {
				obj.value = obj.value.replace(/[^\d.]/g, ""); //清除“数字”和“.”以外的字符
				obj.value = obj.value.replace(/\.{2,}/g, "."); //只保留第一个. 清除多余的
				obj.value = obj.value.replace(".", "$#$").replace(/\./g, "").replace("$#$", ".");
				obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
				if(obj.value.indexOf(".") < 0 && obj.value != "") { //以上已经过滤，此处控制的是如果没有小数点，首位不能为类似于 01、02的金额
					obj.value = parseFloat(obj.value);
				}
			}
		</script>
		<script>
			var arr = "add2";
			if("3" == 3) {
				$('#isAllowCopy').attr('checked', true);
				$('#planeCopy').css("display", "none");
			}
			if("3" == 4) {
				$('#isNeedScreenshot').attr('checked', false);
				$('#limit-screenshot').css("display", "none");
			}

			if("1" == 2) {
				$('#limit-HighQuality').css("display", "none");
				$('#limit-level').css("display", "none");
				// $('#limit-huabei').css("display", "none");
			}

			if(arr == "re_add") {
				$('#productName1').val("");
				$('#productUrl1').val("");
				$('#productActualPrice1').val("");
				$('#productCount1').val("");
				$('#productPublicPrice1').val("");
				// 主图1
				imageUpload.init('imageUrl1', "", 'task');

				// 主图2
				if("") {
					$('#product_attached_2').show();
					$('#productUrl2').val("");
					$('#productActualPrice2').val("");
					$('#productCount2').val("");
					// 主图
					imageUpload.init('imageUrl2', "", 'task');
				}

				// 主图3
				if("") {
					$('#product_attached_3').show();
					$('#productUrl3').val("");
					$('#productActualPrice3').val("");
					$('#productCount3').val("");
					// 主图
					imageUpload.init('imageUrl3', "", 'task');
				}

				// 包不包邮
				if("" != 1) {
					$('#freeShopping1').attr('checked', true);
				} else {
					$('#freeShopping2').attr('checked', true);
				}
				// 商品排序
				if("" == "综合") {
					$('#orderMethod2').attr('checked', true);
				} else if("" == "销量") {
					$('#orderMethod1').attr('checked', true);
				} else {
					$('#orderMethod3').attr('checked', true);
				}
				// 收货人
				$('#receivingNum').val("");
				$('#startPrice').val("");
				$('#endPrice').val("");
				$('#province').val("");

				// 商品所在地
				var $address = $('.goodsaddress');
				var $upaddress = $('.upaddress');
				$upaddress.attr('value', "");
				$address.find('span:first').text("");
				$address.attr('title', "");

				// 订单留言
				$('#orderMsg').val("");

				// 任务类型和单数
				var $tempCount = new Array(0, 0, 0, 0, 0);
				var $taskInfoCount = '0';
				var $taskInfo = null;
				for(var $i = 0; $i < $taskInfoCount; $i++) {
					var $type = $taskInfo[$i]['type'];
					$tempCount[$type] += 1;
					var haoping = '#haoping' + $type + '_' + ($tempCount[$type]);
					var keyWord = '#keyword_' + $type + '_' + ($tempCount[$type]);
					var num = '#num_' + $type + '_' + ($tempCount[$type]);
					$(haoping).show();
					$(keyWord).val($taskInfo[$i]['keyword']);
					$(num).val($taskInfo[$i]['taskcount']);

					if($type != 1) {
						$('#comment_' + $type + '_' + $tempCount[$type]).show();
					}
					// 指定文字好评
					if($type == 2) {
						var remark = '#remark_2_' + ($tempCount[$type]);
						$(remark).val($taskInfo[$i]['praisecontent']);
					}
					// 指定图片好评
					if($type == 3) {
						// $('#remark_3_'+$tempCount[$type]).val($taskInfo[$i]['praisecontent']);
						$('#sku_3_' + $tempCount[$type]).val($taskInfo[$i]['specification']);

						// imageUpload.init('imgUrl1_3_'+$tempCount[$type],$taskInfo[$i]['praisepic1'], 'task');
						// imageUpload.init('imgUrl2_3_'+$tempCount[$type],$taskInfo[$i]['praisepic2'], 'task');
						// imageUpload.init('imgUrl3_3_'+$tempCount[$type],$taskInfo[$i]['praisepic3'], 'task');
						// imageUpload.init('imgUrl4_3_'+$tempCount[$type],$taskInfo[$i]['praisepic4'], 'task');
						// imageUpload.init('imgUrl5_3_'+$tempCount[$type],$taskInfo[$i]['praisepic5'], 'task');
					}
					// 指定视频好评
					if($type == 4) {
						// $('#remark_4_'+$tempCount[$type]).val($taskInfo[$i]['praisecontent']);
						$('sku_4_' + $tempCount[$type]).val($taskInfo[$i]['specification']);
					}
				}

				for(var $i = 1; $i < $tempCount.length; $i++) {
					if($tempCount[$i] >= 1) {
						var commonkey = '#commonKey' + $i;
						var haoping = '#haoping' + $i;
						$(commonkey).attr('checked', true);
						$(haoping).show();
					}
				}

				// 增值服务
				$('#jiashang').val("");
				if("" > 0) {
					$('#isHighQuality').attr('checked', true);
				}
				if("") {
					$('#isLimitArea').attr('checked', true);
					$('#isLimitArea').parents('.limit-user').find('.limit-ipt').show();
					var $firadio = $('#isLimitArea').parents('.limit-user').find('input[type="checkbox"]');
					// $questinfo['limit_area']
					var splitArray = "".split(',');
					var areaArray = new Array();
					for(var value in $firadio) {
						areaArray[$firadio[value].value] = $firadio[value];
					}

					var $showarea = $('.seled-lim-area .showarea');
					var areas = $showarea.text();
					for(var value in splitArray) {
						if(areas.length != 0) {
							areas += '、' + splitArray[value];
						} else {
							areas += splitArray[value];
						}
						$(areaArray[splitArray[value]]).attr('checked', 'checked');
					}

					$showarea.text(areas);
					$('#limitareas').val(areas);
				}
				if("" > 0) {
					$('#isLimitAge').attr('checked', true);
					$('#isLimitAge').parents('.limit-user').find('.limit-ipt').show();
					var $firadio = $('#isLimitAge').parents('.limit-user').find('input[type="radio"]');
					$($firadio["" - 1]).attr('checked', 'checked');
				}
				if("" > 0) {
					$('#isLimitSex').attr('checked', true);
					$('#isLimitSex').parents('.limit-user').find('.limit-ipt').show();
					var $firadio = $('#isLimitSex').parents('.limit-user').find('input[type="radio"]');
					$($firadio["" - 1]).attr('checked', 'checked');
				}
				if("" > 0) {
					$('#limitZuan').attr('checked', true);
				}
				if("" > 0) {
					$('#isLimitCategory').attr('checked', true);
					$('#isLimitCategory').parents('.limit-user').find('.limit-ipt').show();
					var $firadio = $('#isLimitCategory').parents('.limit-user').find('input[type="checkbox"]');
					$($firadio[""]).attr('checked', 'checked');
				}

				if("" > 0) {
					$('#isSaveShop').attr('checked', true);
				} else {
					$('#isSaveShop').removeAttr('checked');
				}
				if("" > 0) {
					$('#isSaveProduct').attr('checked', true);
				} else {
					$('#isSaveProduct').removeAttr('checked');
				}

				if("" == 1) {
					$('#isNeedScreenshot').removeAttr('checked');
				}
				if("" == 0) {
					$('#isChat').removeAttr('checked');
				}
				if("" == 0) {
					$('#isHuaBei').removeAttr('checked');
				}
				if("" == 0) {
					$('#isCreditCard').removeAttr('checked');
				}
				if("" == 1) {
					$('#isAllowCoupon').attr('checked', true);
				}
				if("" == 1) {
					$('#isAllowCopy').attr('checked', true);
				}
				if("" == 1) {
					$('#isForceConfirm').attr('checked', true);
				}

				// 定时发布
				if("" == 2) {
					var pulishList = JSON.parse(null);

					for(var i = 0; i < pulishList.length; i++) {
						var tempArray = pulishList[i];
						dateAppend("", tempArray['intervalTime'], tempArray['releaseCount'], tempArray['intervalCount']);
					}
				} else {
					dateAppend(getNowFormatDate(), "", "", 1);
				}

				// 商家附加要求
				imageUpload.init('imgUrl1', "", 'task');
				imageUpload.init('imgUrl2', "", 'task');
				imageUpload.init('imgUrl3', "", 'task');
				$('#remark').val("");

				changTotalCount();
				changReleaseCount();
			} else {
				dateAppend(getNowFormatDate(), "", "", 1);
				imageUpload.init('imageUrl1', '', 'task');

				if(haoping1 == '1') {
					$('#commonKey1').attr('checked', true);
					$('#haoping1').show();
				}
				if(haoping2 == '1') {
					$('#commonKey2').attr('checked', true);
					$('#haoping2').show();
				}
				if(haoping3 == '1') {
					$('#commonKey3').attr('checked', true);
					$('#haoping3').show();
				}
				if(haoping4 == '1') {
					$('#commonKey4').attr('checked', true);
					$('#haoping4').show();
				}

				for(var $i = 1; $i < 10; $i++) {
					for(var $i = 1; $i < 10; $i++) {

					}
				}
				imageUpload.preview('imgUrl1_3_1', '');
				imageUpload.preview('imgUrl2_3_1', '');
				imageUpload.preview('imgUrl3_3_1', '');
				imageUpload.preview('imgUrl4_3_1', '');
				imageUpload.preview('imgUrl5_3_1', '');

				imageUpload.preview('imgUrl1_3_2', '');
				imageUpload.preview('imgUrl2_3_2', '');
				imageUpload.preview('imgUrl3_3_2', '');
				imageUpload.preview('imgUrl4_3_2', '');
				imageUpload.preview('imgUrl5_3_2', '');
				imageUpload.preview('imgUrl1_3_3', '');
				imageUpload.preview('imgUrl2_3_3', '');
				imageUpload.preview('imgUrl3_3_3', '');
				imageUpload.preview('imgUrl4_3_3', '');
				imageUpload.preview('imgUrl5_3_3', '');
				imageUpload.preview('imgUrl1_3_4', '');
				imageUpload.preview('imgUrl2_3_4', '');
				imageUpload.preview('imgUrl3_3_4', '');
				imageUpload.preview('imgUrl4_3_4', '');
				imageUpload.preview('imgUrl5_3_4', '');
				imageUpload.preview('imgUrl1_3_5', '');
				imageUpload.preview('imgUrl2_3_5', '');
				imageUpload.preview('imgUrl3_3_5', '');
				imageUpload.preview('imgUrl4_3_5', '');
				imageUpload.preview('imgUrl5_3_5', '');
			}
			
			
			
		
			
			
		</script>
		<script type="text/javascript" src="js/taskf700.js"></script>
		<script type="text/javascript" src="js/releasetask_new.js"></script>
		<script type="text/javascript" src="js/task2.js"></script>
	<script src="js/all.min.js"></script>
						<script src="js/main1.js"></script>
	</body>
</html>
